﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartDevice.Library.Device.Voltmeter
{
    /// <summary>
    /// 电压报告事件委托类型
    /// </summary>
    /// <param name="args"></param>
    public delegate void VoltageReportEventHandler(VoltageReportEventArgs args);

    public interface IVoltageVoltmeter
    {
        /// <summary>
        /// 电压报告事件
        /// </summary>
        event VoltageReportEventHandler VoltagesReport;

        /// <summary>
        /// 连接端口
        /// </summary>
        /// <param name="SerialPortName">端口名称</param>
        /// <returns></returns>
        bool Connect(string SerialPortName);

        /// <summary>
        /// 断开连接
        /// </summary>       
        void Disconnect();
    }
}
